from datetime import datetime
import time
import random
import sys

ranha = 7


class Output:
    def __init__(self):
        self.odds = list(range(1, 60, 2))
        #self.rtm = datetime.today().minute
        #self.wait_time = random.randint(0, 30)

    def hoop(self, something):
        self.rtm = datetime.today().minute
        self.wait_time = random.randint(0, 10)
        if self.rtm in self.odds:
            print("This minute seems a little odd.")
        else:
            print("Not an odd minute.")
        if something == ranha-1:
            time.sleep(0)
        else:
            time.sleep(self.wait_time)


def func1():
    ou1 = Output()
    for i in range(ranha):
        ou1.hoop(i)


def func2():
    vowel = ['a', 'e', 'i', 'o', 'u']
    word = input("Provide a word to search for vowels: ")
    found = []
    for letter in word:
        if letter in vowel:
            if letter not in found:
                found.append(letter)
    print(found)

    remov = [1, 2, 3, 4, 5]
    print(remov)
    remov.remove(5)
    print(remov)
    remov.pop(2)
    print(remov)
    remov.extend([5, 6])
    remov.insert(2, 3)
    print(remov)


def func3():
    phrase = "Don't panic!"
    plist = list(phrase)
    print(phrase)
    print(plist)

    new_phrase = ''.join(plist[1:3])
    new_phrase = new_phrase + ''.join([plist[5], plist[4], plist[7], plist[6]])

    print(plist)
    print(new_phrase)


def func4():
    paranoid_android = "Marvin, the Paranoid Android"
    letters = list(paranoid_android)
    for char in letters[:6]:
        print('\t', char)
    #print()
    for char in letters[-7:]:
        print('\t'*2, char)
    #print()
    for char in letters[12:20]:
        print('\t'*3, char)
    #print()


def func5():
    vowel = set('aeiou')
    found = {}
    phrase = input('put something here: ')

    for char in phrase:
        if char in vowel:
            found.setdefault(char, 0)
            found[char] += 1
    for k, v in sorted(found.items()):
        if v != 0:
            print(k, 'was found', v, 'time(s)')


def func6():
    vowel = set('aeiou')
    word = input('something: ')
    found = vowel.intersection(set(word))

    for vowel in sorted(found):
        print(vowel)


def main():
    func6()


if __name__ == '__main__':
    sys.exit(main())
